import requests

url = "https://passport.17k.com/ck/user/login"

session = requests.session()
data =  {
        'loginName': '13043525681',
        'password': '13043525681zb'
        }

resp = session.post(url = url,data = data)

# print(resp.text)
print(resp.cookies)

url2 = "https://user.17k.com/ck/author/shelf?page=1&appKey=2406394919"
resp2 = session.get(url2)
print(resp2.json())

resp2.close()
resp.close()

#方法二 直接发cookies

headers = {"Cookie": "GUID=39cba241-157d-437d-9d4c-bb77253ae510; c_channel=0; c_csc=web; accessToken=avatarUrl%3Dhttps%253A%252F%252Fcdn.static.17k.com%252Fuser%252Favatar%252F03%252F83%252F75%252F79357583.jpg-88x88%253Fv%253D1630291504000%26id%3D79357583%26nickname%3Dasmonkey%26e%3D1645844434%26s%3D07827d17da048d39; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%2279357583%22%2C%22%24device_id%22%3A%2217b917fd7a4546-005f0a1b267b5d-2343360-2073600-17b917fd7a55a6%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E8%87%AA%E7%84%B6%E6%90%9C%E7%B4%A2%E6%B5%81%E9%87%8F%22%2C%22%24latest_referrer%22%3A%22https%3A%2F%2Fcn.bing.com%2F%22%2C%22%24latest_referrer_host%22%3A%22cn.bing.com%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC%22%7D%2C%22first_id%22%3A%2239cba241-157d-437d-9d4c-bb77253ae510%22%7D"}
resp = requests.get(url2,headers)

print(resp.json())